import request from '@/utils/request'

export function getAll(serialno) {
  return request({
    url: `/idata/plan/${serialno}`,
    method: 'get'
  })
}

export function addOne(data) {
  return request({
    url: `/idata/plan`,
    method: 'post',
    data
  })
}

export function cancelOne(id) {
  return request({
    url: `/idata/plan/cancel/${id}`,
    method: 'put'
  })
}

export function deleteOne(id) {
  return request({
    url: `/idata/plan/del/${id}`,
    method: 'put'
  })
}
